
<div class="panel panel-primary">
  <!-- Default panel contents -->
  <div class="panel-heading">Top Earning</div>
 
  <!-- List group -->
  <ul class="list-group">

    <?php for ($i = 0; $i < count($topEarn); $i++) { ?>
    <li class="list-group-item">
      
        <div class="alert alert-success">         
            <span class="badge"><?php echo $i + 1 ?></span>
            <span class="label label-warning"><?php echo $topEarn[$i]->memberName ?></span>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php echo $topEarn[$i]->points ?> points        
        </div>
      
    </li>
    <?php } ?>

  </ul>
</div>
